package com.mycompany.virtualApp.service;

import com.mycompany.virtualApp.dao.UpdateApkDao;
import com.mycompany.virtualApp.entity.UpdateApk;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Jintao_Ma on 2017/12/24.
 */
@Service("updateApkService")
public class UpdateApkServiceImpl implements UpdateApkService {
    @Autowired
    private UpdateApkDao updateApkDao;

    @Override
    public List<UpdateApk> getUpdateApkList(Map<String, Object> map) {
        return updateApkDao.selectAllByParam(map);
    }

    @Override
    public int saveUpdateApk(UpdateApk updateApk) {
        return updateApkDao.saveUpdateApk(updateApk);
    }

    @Override
    public int updateUpdateApk(UpdateApk updateApk) {
        return updateApkDao.updateUpdateApk(updateApk);
    }

    @Override
    public int delete(Map<String, Object> map) {
        return updateApkDao.delete(map);
    }
}
